#ifndef TRAYICON_H
#define TRAYICON_H

#include <QObject>
#include <QTimer>
#include <QMenu>
#include <QCloseEvent>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QQmlApplicationEngine>


class TrayIcon : public QObject
{
    Q_OBJECT
public:
    explicit TrayIcon(QObject *parent = nullptr);

      QTimer *blink_timer;
      QSystemTrayIcon * system_tray;

      QString dis_icon=":/images/v1.png.png";
      QString active_icon=":/images/v2.png.png";

     QMenu * menu;

     QQmlApplicationEngine *engine;
signals:

public slots:
      void init();

      void  stop_blink();
      void  start_blink();
      void  slot_changeIcon();
      void  setIcon(QString part);
      void  setToolTip(QString msg);
      void  activeTray(QSystemTrayIcon::ActivationReason reason);
      void showWindow();
      void hidenWindow();


};

#endif // TRAYICON_H
